
package cn.edu.scau.cmi.hombio.dao;

import cn.edu.scau.cmi.hombio.domain.Pig;

import java.util.Calendar;
import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;

import org.springframework.dao.DataAccessException;

/**
 * DAO to manage Pig entities.
 * 
 */
public interface PigDAO extends JpaDao<Pig> {

	/**
	 * JPQL Query - findAllPigs
	 *
	 */
	public Set<Pig> findAllPigs() throws DataAccessException;

	/**
	 * JPQL Query - findAllPigs
	 *
	 */
	public Set<Pig> findAllPigs(int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigByState
	 *
	 */
	public Set<Pig> findPigByState(Boolean state) throws DataAccessException;

	/**
	 * JPQL Query - findPigByState
	 *
	 */
	public Set<Pig> findPigByState(Boolean state, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigByRfidContaining
	 *
	 */
	public Set<Pig> findPigByRfidContaining(String rfid) throws DataAccessException;

	/**
	 * JPQL Query - findPigByRfidContaining
	 *
	 */
	public Set<Pig> findPigByRfidContaining(String rfid, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigByNumber
	 *
	 */
	public Set<Pig> findPigByNumber(String number) throws DataAccessException;

	/**
	 * JPQL Query - findPigByNumber
	 *
	 */
	public Set<Pig> findPigByNumber(String number, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigByEarNumber
	 *
	 */
	public Set<Pig> findPigByEarNumber(Integer earNumber) throws DataAccessException;

	/**
	 * JPQL Query - findPigByEarNumber
	 *
	 */
	public Set<Pig> findPigByEarNumber(Integer earNumber, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigByRfid
	 *
	 */
	public Set<Pig> findPigByRfid(String rfid_1) throws DataAccessException;

	/**
	 * JPQL Query - findPigByRfid
	 *
	 */
	public Set<Pig> findPigByRfid(String rfid_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigByBirthday
	 *
	 */
	public Set<Pig> findPigByBirthday(java.util.Calendar birthday) throws DataAccessException;

	/**
	 * JPQL Query - findPigByBirthday
	 *
	 */
	public Set<Pig> findPigByBirthday(Calendar birthday, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigByMemoContaining
	 *
	 */
	public Set<Pig> findPigByMemoContaining(String memo) throws DataAccessException;

	/**
	 * JPQL Query - findPigByMemoContaining
	 *
	 */
	public Set<Pig> findPigByMemoContaining(String memo, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigByMemo
	 *
	 */
	public Set<Pig> findPigByMemo(String memo_1) throws DataAccessException;

	/**
	 * JPQL Query - findPigByMemo
	 *
	 */
	public Set<Pig> findPigByMemo(String memo_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigByNumberContaining
	 *
	 */
	public Set<Pig> findPigByNumberContaining(String number_1) throws DataAccessException;

	/**
	 * JPQL Query - findPigByNumberContaining
	 *
	 */
	public Set<Pig> findPigByNumberContaining(String number_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigById
	 *
	 */
	public Pig findPigById(Integer id) throws DataAccessException;

	/**
	 * JPQL Query - findPigById
	 *
	 */
	public Pig findPigById(Integer id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findPigByPrimaryKey
	 *
	 */
	public Pig findPigByPrimaryKey(Integer id_1) throws DataAccessException;

	/**
	 * JPQL Query - findPigByPrimaryKey
	 *
	 */
	public Pig findPigByPrimaryKey(Integer id_1, int startResult, int maxRows) throws DataAccessException;

}